﻿using Newtonsoft.Json;

namespace QuantBox
{
    public class ErrorInfo
    {
        [JsonProperty(PropertyName = "error_msg")]
        public string ErrorMsg { set; get; }
        [JsonProperty(PropertyName = "error_code")]
        public int ErrorCode { set; get; }

        public ErrorInfo()
        {
            ErrorMsg = string.Empty;
        }
        public ErrorInfo(string msg)
        {
            ErrorCode = -1;
            ErrorMsg = msg;
        }
    }
}
